import request from '@/utils/request'

export function treeV3(query) {
  return request({
    url: '/kobe/classification/treeV3',
    method: 'get',
    params: query
  })
}

export function selectById(categoryId) {
  return request({
    url: '/kobe/classification/' + categoryId,
    method: 'get',
  })
}

export function add(data) {
  return request({
    url: '/kobe/classification/add',
    method: 'post',
    data: data
  })
}

export function update(data) {
  return request({
    url: '/kobe/classification/update',
    method: 'put',
    data: data
  })
}
